// import {request} from '../utils/request';
import {
  apiVirtualSuccessAccess,
  // useVirtualAccess
} from '@/utils/tools';

export async function queryListData(params) {
  // if (useVirtualAccess()) {
  const result = await apiVirtualSuccessAccess({
    params,
    data: [
      { flag: 1, name: '箱' },
      { flag: 2, name: '提' },
      { flag: 3, name: '件' },
      { flag: 4, name: '盒' },
      { flag: 5, name: '片' },
      { flag: 6, name: '包' },
      { flag: 7, name: '框' },
      { flag: 8, name: '个' },
      { flag: 9, name: '瓶' },
      { flag: 10, name: '罐' },
    ],
  });

  return result;
  // }

  // return request('/Unit/GetUnitList', {
  //   method: 'POST',
  //   body: params,
  // });
}

/**
 * 占位函数
 *
 * @export
 * @returns
 */
export async function empty() {
  return {};
}
